package com.witdata.common.domain.res;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.witdata.common.domain.dto.MessageDto;
import com.witdata.common.domain.vo.UserVo;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class SessionResponse {

    private UserVo receiver;

    private MessageDto latestMessage;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long sessionId;

    private Long unreadCounts;
}
